package com.grwx.omc.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.grwx.omc.entity.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotEmpty;


/**
 * @Description: 设备
 * @Author: ManJiang
 * @Date: 2020/5/12
 */
@Data
@TableName("sys_device")
public class SysDevice extends BaseEntity {
    /**
     * 设备名称
     */
    @NotEmpty(message = "omc.user.admin.user.E002")
    private String deviceName;

    /**
     * 设备编号
     */
    @NotEmpty(message = "omc.user.admin.user.E003")
    private String deviceNo;

    /**
     * 设备类型
     */
    private String deviceType;

    /**
     * 设备运行状态
     */
    private boolean enableFlag;

    /**
     * 厂商Id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private long providerId;

    /**
     * 厂商名称
     */
    @TableField(exist = false)
    private String providerName;

    /**
     * 备注信息
     */
    private String remark;
}
